﻿using System;
using System.ComponentModel.DataAnnotations;
namespace Manager.Model.Admin
{
    /// <summary>
    /// M_Shop:实体类(属性说明自动提取数据库字段的描述信息)
    /// </summary>
    [Serializable]
    public partial class M_Shop
    {
        public M_Shop()
        { }
        #region Model
        private int _shopid;
        private string _shopname;
        private int? _shoptypeid;
        private string _shopimage;
        private bool _isvalid = true;
        private string _shopimage1;
        private string _shopaddress;
        private string _shoptel;
        private string _shopdesc;
        private bool _istop = false;
        /// <summary>
        /// 
        /// </summary>
        [Display(Name="门店编号")]
        public int ShopID
        {
            set { _shopid = value; }
            get { return _shopid; }
        }
        /// <summary>
        /// 
        /// </summary>
        [Display(Name="门店名称")]
        [StringLength(50)]
        [Required]
        public string ShopName
        {
            set { _shopname = value; }
            get { return _shopname; }
        }
        /// <summary>
        /// 
        /// </summary>
        [Display(Name = "门店类别")]
        [Required]
        public int? ShopTypeID
        {
            set { _shoptypeid = value; }
            get { return _shoptypeid; }
        }
        /// <summary>
        /// 
        /// </summary>
        [Display(Name = "门店图片1")]
        public string ShopImage
        {
            set { _shopimage = value; }
            get { return _shopimage; }
        }
        /// <summary>
        /// 
        /// </summary>
        [Display(Name = "是否有效")]
        public bool IsValid
        {
            set { _isvalid = value; }
            get { return _isvalid; }
        }
        /// <summary>
        /// 
        /// </summary>
        [Display(Name = "门店图片2")]
        public string ShopImage1
        {
            set { _shopimage1 = value; }
            get { return _shopimage1; }
        }
        /// <summary>
        /// 
        /// </summary>
        [Display(Name = "门店地址")]
        [StringLength(100)]
        public string ShopAddress
        {
            set { _shopaddress = value; }
            get { return _shopaddress; }
        }
        /// <summary>
        /// 
        /// </summary>
        [Display(Name = "门店电话")]
        [StringLength(50)]
        [RegularExpression(@"(\(\d{3,4}\)|\d{3,4}-|\s)?\d{7,14}", ErrorMessage = "请输入正确的电话号码")]
        public string ShopTel
        {
            set { _shoptel = value; }
            get { return _shoptel; }
        }
        /// <summary>
        /// 
        /// </summary>
        [Display(Name = "门店介绍")]
        public string ShopDesc
        {
            set { _shopdesc = value; }
            get { return _shopdesc; }
        }
        /// <summary>
        /// 
        /// </summary>
        [Display(Name = "首页显示")]
        public bool IsTop
        {
            set { _istop = value; }
            get { return _istop; }
        }
        #endregion Model

    }
}

